class UrlMappings {

	static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }
		"/api/user" (resources: "user", namespace: "api", action: "save")
		
		"/api/usies" (resources:"usie", namespace :"api") {
			"/invitations" (resources:"invitation", namespace:"api") 
			action=[GET="save",POST="save",PUT="update",DELETE=""]
		}
        "/"(view:"/index")
        "500"(view:'/error')
	}
}
